package com.xiaoshuidi.cloud.module.contract.convert.fee;

import com.xiaoshuidi.cloud.framework.common.pojo.PageResult;
import com.xiaoshuidi.cloud.module.contract.controller.admin.fee.vo.*;
import com.xiaoshuidi.cloud.module.contract.dal.dataobject.fee.FeesDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.Collection;
import java.util.List;


/**
 * 费项配置 Convert
 *
 * @author 合房租赁
 */
@Mapper
public interface FeesConvert {

    FeesConvert INSTANCE = Mappers.getMapper(FeesConvert.class);

    FeesDO convert(FeesCreateReqVO bean);

    FeesDO convert(FeesUpdateReqVO bean);

    FeesRespVO convert(FeesDO bean);

    List<FeesRespVO> convertList(List<FeesDO> list);

    List<FeesDO> convertBaseList(List<FeesBaseVO> list);

    PageResult<FeesRespVO> convertPage(PageResult<FeesDO> page);

    List<FeesExcelVO> convertList02(List<FeesDO> list);

    List<FeesDO> convertList03(Collection<FeeSaveVo> list);

}
